<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .c1{
            color: red;
            /*background-color: #FF69B4;*/
            /*background-color: rgb(25,180,10);*/
            /*background-color: red;*/
            font-size: 32px;
            height: 150px;
            width: 500px; /* 按照父亲相对占比*/
        }
    </style>
</head>
<body>
    <div class="c1">sdfdf</div>
    <div style="width: 500px;">
        <div style="width: 20%;background-color: antiquewhite;float: left">asdf</div>
        <div style="width: 80%;background-color: palegoldenrod;float: left">asdf</div>
    </div>
</body>
</html>